<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        
         
        <LINK REL=StyleSheet HREF="css/styleindex.css" TYPE="text/css" >
        <link rel="stylesheet" href="css/bootstrap.css">
       
        <style>
            body{
                
                background: #000 url("imagens/camplolfundo.jpg") no-repeat;
              /*  background: #02090c;*/
                 font-family: "Napoli",serial;
                 font-family: "friz quadrata TT";
                
                
            }
            
            ul#menu{
    
        position: absolute;
        padding:0px;
	margin-top: 103px;
	list-style:none;
        left: 181px;
        
    
}
#riot2{
    
    
    margin-left: 150px;
    width: 50%;
    margin-bottom: 70px;
    
}
#pat{
    
    color:#fff;
    margin-left: 150px;
    font-size: 20px;
    
}


#login{
    
    
   
    margin-top: 0;
    width: 100%;
    height: 40px;
    background: #1d1d1d;
    -webkit-box-shadow: 0 1px 2px #323232;
-moz-box-shadow: 0 1px 2px #323232;
box-shadow: 0 1px 2px #323232;
    -webkit-box-shadow: 0px 1px 2px #2998c9;
    border-radius: 1px;
    margin:0 auto;
    text-align: center;
   
}

#login-dir{
    padding: 2px;
    float: right;
    margin-right: 8px;
    
    
}
            
            
        </style>
    </head>
    <body >
      
        
          <div id="login">
            
            <div id="login-dir">
                 
                
                <form class="form-inline" action="valida.php">
                <div class="form-group">
                    <label class="sr-only" for="inputEmail">Email</label>
                    <input type="email" class="form-control" id="inputEmail" placeholder="Email">
                </div>
                <div class="form-group">
                    <label class="sr-only" for="inputPassword">Password</label>
                    <input type="password" class="form-control" class="input-small" id="inputPassword" placeholder="Password">
                </div>
    
            <button type="submit" class="btn btn-primary">Login</button>
           </form>

            
            </div>
            
            
            
        </div>
        
        
        <div id="top">
            
            
            
            <div class="top-m">
                
                       
                

                <ul id="menu">

                        <li><a href="index.php" >Home</a></li>
                          <li><a href="#" >Inscreva-se</a></li>                          
                            <li><a href="#" >Organização</a></li>
                               <li><a href="#" >Campeonato</a></li>
                               <li><a href="#" >Contato</a></li>


                    </ul>
                </div>    
                
                
                
                
            </div>
            
            <div id="top-esq" >
                   <!--  <img src="imagens/logo.png" width="500"/> -->
                
            </div>
       
            
            <div id="top-dir">
  
           
            
        </div>
        
        <div id="conteudo">
            
            <!--   <div id="cont-esq">
                
                   <strong>  O que é League of Legends?    </strong>
                   <p>League of Legends é um jogo online competitivo que mistura a velocidade e a intensidade de um RTS com elementos de RPG. Duas equipes de poderosos campeões, cada um com design e estilo único, lutam em diversos campos de batalha e modos de jogo. Com um elenco de campeões em constante expansão, atualizações frequentes e uma cena competitiva exuberante, League of Legends oferece diversão incessante para jogadores de todos os níveis de habilidade</p>
                
                
               </div> -->
            
            <div id="cont-dir">
                
                <div class="content-out">
                    
                    <div class="content-for"></div>     
                      
                    <div class="content-meio">
                        
                        
                        <div class="d"> </div>
                        <div class="meio">
                            
                            <div class="logo2">
                            
                                <h2 id="titles">Inscreva-se</h2>
                               
                            </div>
                            
                          <!--  <div class="box1">
                            
                                <h2>Increva-se</h2>
                            </div>
                            -->
         
                           <br/>
                           
                             <?php
        // put your code here
        require_once 'conecta.php';
        
        if(!isset($_POST["enviar"])){
        ?>
                          
       <div id="form2">                    
           <form class="form-horizontal" role="form" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" >
               <div class="form-group">
                 <label for="inputEquipe" class="col-sm-2 control-label">Equipe</label>
                 <div class="col-sm-10">
                     <input type="text" class="form-control" id="inputEmail3" placeholder="Equipe" name="equipe">
                 </div>
               </div>
              <div class="form-group">
                 <label for="inputEmail3" class="col-sm-2 control-label">Participante 1</label>
                 <div class="col-sm-10">
                     <input type="partc1" class="form-control" id="inputError1" id="inputEmail3" placeholder="Participante 1 Capitao" name="part1">
                 </div>
               </div>
               <div class="form-group">
                 <label for="inputPartipante" class="col-sm-2 control-label">Participante 2</label>
                 <div class="col-sm-10">
                   <input type="partc2" class="form-control" id="inputPassword3" placeholder="Participante 2" name="part2">
                 </div>
               </div>
          <div class="form-group">
                 <label for="inputPartipante" class="col-sm-2 control-label">Participante 3</label>
                 <div class="col-sm-10">
                   <input type="partc3" class="form-control" id="inputPassword3" placeholder="Participante 3"  name="part3">
                 </div>
               </div>
          <div class="form-group">
                 <label for="inputPartipante" class="col-sm-2 control-label">Participante 4</label>
                 <div class="col-sm-10">
                   <input type="partc4" class="form-control" id="inputPassword3" placeholder="Participante 4" name="part4">
                 </div>
               </div>
          <div class="form-group">
                 <label for="inputPartipante" class="col-sm-2 control-label">Participante 5</label>
                 <div class="col-sm-10">
                   <input type="partc5" class="form-control" id="inputPassword3" placeholder="Participante 5"  name="part5">
                 </div>
               </div>
        
               <div class="form-group">
                 <label for="inputEquipe" class="col-sm-2 control-label">Email</label>
                 <div class="col-sm-10">
                   <input type="email" class="form-control" id="inputEmail3" placeholder="Email"  name="email">
                 </div>
               </div>
        
             <div class="form-group">
                 <label for="inputEquipe" class="col-sm-2 control-label">Senha</label>
                 <div class="col-sm-4">
                     <input type="password" class="form-control" id="inputEmail3" placeholder="Senha" required="" name="senha">
                 </div>
               </div>
               
               <div class="form-group">
                 <div class="col-sm-offset-2 col-sm-10">
                 <!--  <button type="submit" class="btn btn-default">Sign in</button> -->
                
                 </div>
               </div>
           <input type="hidden" value="s" name="enviar" >               
           <input type="submit" class="submit" value="Cadastrar">
             </form>
                                </div> 
                           
                      <?php 
        }else{
            
            if($conexao){
        
                $equipe = $_POST['equipe'];
                $email= $_POST['email'];
                $senha = $_POST['senha'];
                $senha = md5($senha);
                $part1 = $_POST['part1'];
                $part2= $_POST['part2'];
                $part3= $_POST['part3'];
                $part4= $_POST['part4'];
                $part5= $_POST['part5'];
                $situacao = "pedente";
                $autentica = 1;
  //    $sql = "INSERT INTO fotos (novo_nome,legenda,especie) VALUES ('$Novo_Nome', '$legenda', '$especie')";                  
                 $sql = "INSERT INTO participantes (id,email,senha,equipe,part1,part2,part3,part4,part5,situacao,autentica) values('','$email','$senha','$equipe','$part1','$part2','$part3','$part4','$part5','$situacao','$autentica')";
                
                 $res2 = mysql_db_query("camplol", $sql,$conexao);
                 
                 if($res2){
                     
                       echo "equipe cadastrada".$equipe;
                     
                          header("location:index.php");
                     
                 }else{
                     
                     $erro= mysql_error();
                      echo "erro em $email cadastrar equipe ->".$erro;
                      
                 }
            }//fim conexao
            
        }
                      ?>     
                                   <!--<table>
                                       <tr>
                                            <td><strong>Equipe:</strong></td>                                     
                                             <td><input type="text"></td>  
                                       </tr>
                                        <tr>
                                            <td> <strong>Participante 1 * : </strong></td>                                     
                                             <td><input type="text"></td>  
                                             <td><h5 style="color:#2998c9">(Capitão)</h5> </td>                                              
                                       </tr>
                                        <tr>
                                            <td> <strong>Participante 2 * : </strong></td>                                     
                                             <td><input type="text"></td>                                
                                        </tr>
                                             <tr>
                                            <td> <strong>Participante 3 * : </strong></td>                                     
                                             <td><input type="text"></td>                                       
                                             
                                       </tr>
                                             <tr>
                                            <td> <strong>Participante 4 * : </strong></td>                                     
                                             <td><input type="text"></td>                                       
                                             
                                       </tr>
                                       <tr>
                                            <td> <strong>Participante 5 * : </strong></td>                                     
                                             <td><input type="text"></td>                                       
                                             
                                       </tr> 
                                       
                                       
                                       
                                       
                                       
                                   </table>-->
                                  <!-- <strong>Equipe:</strong>
                                   <input type="text"><br/>                                       
                                   <strong>Participante 1 * : </strong> <input type="text"> <h5 style="color:#2998c9">(Capitão)</h5> <br/>     
                        
                                    <strong>Participante 2 * : </strong>      
                                   <input type="text"><br/>   
                                    <strong>Participante 3 * : </strong>      
                                   <input type="text"><br/>   
                                    <strong>Participante 4 * : </strong>      
                                   <input type="text"><br/>   
                                   <strong>Participante 5 * : </strong>   
                                      <input type="text"><br/>   
                                   <strong>Cidade *: </strong>      
                                   <input type="text"><br/> 
                                 
                                   <input type="submit" class="submit" value="Cadastrar">
                                </form>                          
                         
                            
                            --> 
                              
                           
                        </div>
                        
                        
                    </div>
                    
                    <div class="baixo"></div>
                    
                </div>
                
                
              
            </div>
            
         
            
            
        </div>
    <br/>
    <div id="s">        
       
    </div>
      <div id="pat">     
          <br/>
          <strong> Patrocinios</strong>
    </div>
    <br><br>
    <br>
        <div id="footers">
        <div id="riot2">
            
            <img src="imagens/riot_logo3.png" >&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
            <img src="imagens/rating-pt-br2.jpg" >&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
            <img src="imagens/logo_ufg.png" width="70" >&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
            
        </div> 
        
         
        </div>
    </body>
</html>
